package top.lyunz.lucky.hr.util;

/**
 * 
 * ajaxִ��controller���ؽ��ʱ�����õİ�
 * 
 * @author HjH
 *
 */
public class simpleResult {
	//����ɹ�ʧ��
	private boolean success;
	//��������
	private Object data;
	//���ش������
	private String errorCode;
	//��ʾ��Ϣ
	private String errorMsg;
	//������Ϣ
	private String message;
	
	public simpleResult() {}
	/**
	 * ִ���Ƿ�ɹ�
	 * @param success
	 */
	public simpleResult(boolean success) {
		this.success = success;
	}
	
	/**
	 * ִ�гɹ���������
	 * @param data
	 */
	public simpleResult(Object data) {
		this.success = true;
		this.data = data;
	}
	
	/**
	 * ����ʱִ��
	 * @param errCode
	 * @param errMsg
	 * @param message
	 */
	public simpleResult(String errCode, String errMsg, String message) {
		this.errorCode = errCode;
		this.errorMsg  = errMsg;
		this.message = message;
	}
	
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	
	

}

